﻿using HappyBa.Core.Data;

namespace HappyBa.Core.Validators
{
    public class ValidationResult
    {
        public ValidationResult(string message, ValidationResultType type=ValidationResultType.Error)
        {
            Message = message;
            Type = type;
        }

        public string ValidatorName { get; set; }
        public User User { get; set; }
        public UIEntityBase Entity { get; set; }
        public string Message { get; private set; }
        public ValidationResultType Type { get; private set; }

        public override string ToString()
        {
            return Type + ": " + Message;
        }
    }
}
